package main

import (
	"bufio"
	"bytes"
	"fmt"
	"strings"
)

func init() {
	/*以下为三重循环*/
	for i := 1; i < 5; i++ {
		for j := 1; j < 5; j++ {
			for k := 0; k < 5; k++ {
				/*确保i,j,k三位互不相同*/
				if i != k && i != j && j != k {
					fmt.Println(i, j, k)
				}
			}
		}
	}
}
func main() {
	b := bytes.NewBuffer(make([]byte, 0))
	s := strings.NewReader("Hello World")
	bw := bufio.NewWriter(b)
	bw.ReadFrom(s)
	bw.Flush()
	fmt.Println(b)
}
